package com.weilx959.spt.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Configuration item.
 * <p>
 * On field or class.
 *
 * @author weilx
 * @since 2024-07-19
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface ConfigItem {
    /**
     * Name of configuration item displayed. Default is field or class name.
     *
     * @return {@link String }
     */
    String name()  default "";

    /**
     * Value of configuration item. Default is field or class name.
     *
     * @return {@link String }
     */
    String value() default "";
}
